// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//导入需要全局注册的组件
import Carousels from './components/Carousels.vue'
import Header from './components/Header.vue'
import Footer from './components/Footer.vue'
import LoginHeader from './components/Login-header.vue'
import LoginFooter from './components/Login-footer.vue'
//调用Vue.component 进行全局注册 一次只能注册一个
Vue.component('Carousels', Carousels);
Vue.component('Header', Header);
Vue.component('Footer', Footer);
Vue.component('Lheader', LoginHeader);
Vue.component('Lfooter', LoginFooter);


//导入elementUI组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})
